use crate::core::entity::resource_url::ResourceUrl;
use crate::core::entity::whitelist_key::WhitelistKey;
use crate::core::model::resource_version_entry::ResourceVersionEntry;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

/// 热更新设置
///
/// 热更新设置独立于不同的渠道和不同的母包版本号
#[derive(Serialize, Deserialize, Debug)]
pub struct HotUpdateInfo {
    pub resource_version: ResourceVersionEntry,
    pub resource_url: ResourceUrl,
    pub whitelist: HashMap<WhitelistKey, ResourceVersionEntry>,
}
